# encoding=utf-8
# author:梁子龙

def response_handler(token, user=None, request=None):
    return {
        "token": token,
        "id": user.id,
        "username": user.username
    }
    pass
